<template>
    <div class="section">
        <div class="book-list" >
            <div class="header">
                <div class="heading">{{ heading }}</div>
                <div class="more">更多...</div>
            </div>
            <div><br></div>
            <div class="book-items"  >
                <div class="book" v-for="book in books" >
                    <div @click="$emit('select',book)" class="cover">
                        <img :src="book.img_url"></div>
                    <div class="title">{{book.title}}</div>
                    <div class="authors">{{book.authors|join}}</div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    import './list.less'
    export default {
        name: 'aaa',
        props:['heading','books'],
        filters:{
            join(args){
                return args.join(',')
            }

        }

    }
</script>